//Matt McGwire
//Jason Malutich
//Rob Allen
//The Fuzzy Monks

//No we did not find any errors in the delete function.

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class testing_fun 
{

	@Before
	public void setUp() throws Exception 
	{
		//LinkedList s = new LinkedList();
	}

	@After
	public void tearDown() throws Exception 
	{
		
	}

	@Test
	public void test_add() 
	{	
		LinkedList s = new LinkedList();
		
		System.out.println("Starting Testing Add.......");
	
		s.insert(1);
		s.insert(2);
		
		Node start = s.getStart();
		
		start = s.getStart();
		if(start.getData() != 1)
		{
			System.out.println("Error: you broke it");
		}
		
		start = start.getNext();
		if(start.getData() != 2)
		{
			System.out.println("Like a Boss you broke the thing");
		}
		
		System.out.println("Done Add......");
	}
	
	@Test
	public void test_delete()
	{
		LinkedList s = new LinkedList();
		
		System.out.println("Starting Testing Delete.......");
	
		s.insert(1);
		s.insert(2);
		
		s.delete(1);
		s.delete(2);
		
		Node start = s.getStart();
		
		if(start != null)
		{
			System.out.println("Error: list is not empty");
		}
		s.insert(1);
		s.insert(2);
		
		start = s.getStart();
		if(start.getData() != 1)
		{
			System.out.println("Error: you broke it");
		}
		
		s.delete(3);
		
		System.out.println("Done Testing Delete......");
	}
}